﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PPC_emulator
{
    class Registers
    {
        UInt32[] registers = new UInt32[32];
        UInt32[] fregisters = new UInt32[32];

        public void setRegister(int rn, UInt32 rv)
        {
            registers[rn] = rv;
        }

        public UInt32 getRegister(int rn)
        {
            return registers[rn];
        }

        public void setfRegister(int rn, UInt32 rv)
        {
            fregisters[rn] = rv;
        }

        public UInt32 getfRegister(int rn)
        {
            return fregisters[rn];
        }

    }
}
